import SwiftUI

struct BasicCarousel: View {
    var images : [String]
    
    var body: some View {
        TabView {
            ForEach(images, id: \.self) { image in
                Image(image)
                    .resizable()
                    .scaledToFill()
                    .frame(height: 200)
                    .clipped()
                    
            }
        }
        .tabViewStyle(.page(indexDisplayMode: .always))
        .frame(height: 200)
//        .padding(-20)
    }
}


